﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Cwing.UI.Controls;

public partial class DropDownListValidation : ValidationPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        CustomizeValidation cv = new CustomizeValidation(DropDownList1.SelectedValue, ErrorList1);
        cv.Path = "//Control[@ID='Number']";
        CustomizeValidations.Add(cv);
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Write(PageValidate());
    }
}
